import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;


public class Main {
	public static void main(String[] args){
		//1. Create the frame.
		JFrame frame = new JFrame("FrameDemo");
		frame.setSize(200,200);
		//2. Optional: What happens when the frame closes?
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		//3. Create components and put them in the frame.
		//...create emptyLabel...
		JLabel emptyLabel = new JLabel();
		frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
		
		JButton button = new JButton();
		frame.getContentPane().add(button,BorderLayout.SOUTH);

		//4. Show it.
		frame.setVisible(true);
	}
}
